package fr.umlv.m2.jee.portailEtudiant.web.action.annale;

import com.opensymphony.xwork2.ActionSupport;
import fr.umlv.m2.jee.portailEtudiant.service.DisplayTutorial;
import fr.umlv.m2.jee.portailEtudiant.service.IDisplayTutorialService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 15/04/11
 * Time: 14:16
 * To change this template use File | Settings | File Templates.
 */
public class Annales extends ActionSupport {

    @Autowired
    private IDisplayTutorialService tutosService;

    private List<DisplayTutorial> tutoList;

    @Override
	public String execute() throws Exception {
        System.out.println("ds execute 1");
		tutoList = tutosService.getAllDisplayTutorials();
        System.out.println("ds execute 2");
		return SUCCESS;

	}

    public List< DisplayTutorial > getTutoList() {
		return tutoList;
	}


    public void setTutosService(IDisplayTutorialService tutosService) {
        this.tutosService = tutosService;
    }
}

